<div class="main-page">
    <a href="<?php echo $data->getDetailLink(); ?>">
        <div class="item-post">
            <div style="width:50px; height:50px;display:inline-block;vertical-align:top;background-image: url('<?php echo Yii::app()->createUrl($data->main_image) ?>'); background-size:100% auto; background-position:center"></div>
<!--            <img src="<?php echo Yii::app()->createUrl($data->main_image)?>"/>-->
            <div class="post-content" style="vertical-align:top;">
                <span><?php echo $data->title; ?></span><?php if($data->hot == 1): ?><span><img src="<?php echo Yii::app()->createUrl('css/images/icon-hot-big.gif') ?>"/></span><?php endif;?>
            </div>
            <span class="button-detail"></span>
        </div>
    </a>    
</div>
